-- GENERATED SPELL FOR [Windshear Geomancer] --


function spell0_4003(pUnit, Event) --@Fevered Fatigue,n/a--
pUnit:FullCastSpellOnTarget(8139,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4003', 3000, 1)
end

function spell1_4003(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(20792,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4003', 7000, 1)
end

function Sorts_4003(pUnit, Event)
local choix_sorts_4003 = math.random(0, 1)
if choix_sorts_4003 == 0 then
pUnit:RegisterEvent('spell0_4003', 1, 1)
end
if choix_sorts_4003 == 1 then
pUnit:RegisterEvent('spell1_4003', 1, 1)
end
end

function mob4003_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4003', math.random(1500, 3000), 1)
end

function mob4003_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4003_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4003_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4003, 1, 'mob4003_Action')
RegisterUnitEvent(4003, 2, 'mob4003_Leave')
RegisterUnitEvent(4003, 3, 'mob4003_Kill')
RegisterUnitEvent(4003, 4, 'mob4003_Die')
